package cn.com.git.admin.dao;

import cn.com.git.admin.dao.model.SysResource;
import cn.com.git.admin.service.query.SysResourceListQuery;

import java.util.List;

/**
  * SysResourceDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/8
*/
public interface SysResourceDAO {

    SysResource selectById(Integer id);

    SysResource selectOne(SysResourceListQuery query);

    int countLimit(SysResourceListQuery query);

    List<SysResource> selectList(SysResourceListQuery query);

    Integer insertOne(SysResource record);

    List<SysResource> insertList(List<SysResource> list);

    Integer updateOne(SysResource record);

    Integer updateLimit(SysResource record, SysResourceListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(SysResourceListQuery query);
}